/**
 * @生成的1~50之间的质数
 *
 * @author	 wangshikun <wangshikun2010@gmail.com>
 * @copyright	(c) 2012 wangshikun <wangshikun2010@gmail.com>
 * @license	http://www.opensource.org/licenses/mit-license.php The MIT License
 * @package	default
 * @subpackage	default
 */

#include <stdio.h>
#include <cs50.h>
#include <stdbool.h>

int main(int argc, char *argv[]) {
	bool s;

	for (int i=2; i<=50; i++) {
		s = true;

		for (int j=2; j<i; j++) {
			if (i % j == 0) {
				s = false;
			}
		}

		if (s != false) {
			printf("%i\n", i);
		}
	}

	return 0;
}
